package com.jianhua.appmarket.module.service.system;

import com.jianhua.appmarket.common.base.BaseService;
import com.jianhua.appmarket.module.entity.system.Dept;
import com.jianhua.appmarket.module.entity.system.User;
import com.jianhua.appmarket.module.model.system.DeptVO;
import com.jianhua.appmarket.module.model.system.UserVO;

import java.util.List;

public interface IDeptService extends BaseService<Dept> {

    List<DeptVO> listAllDeptByOrgId(Long orgId);

    List<DeptVO> listBranchByParentId(Long parentId);

    Boolean deleteDept(Long deptId);

    Boolean addOrEditDept(Dept dept, UserVO user);

    Boolean editDept(Dept dept,User user);

}
